<?php
class PerguntaController extends BaseController{

	public function init(){
		parent::init();
	}

	function addAction() {
		$this->view->title = "Cadastrar pergunta";
		$this->view->action = $this->view->baseUrl.'/pergunta/add';
		if (strtolower($_SERVER['REQUEST_METHOD']) == 'post'){
			/*$juridica->id_juridica = null;
			$juridica->id_pessoa   = null;
			$juridica=$this->popular($juridica, $this->_request->getPost());
			$juridica->salvar();
			$this->view->currentTab=1;
			$this->_redirect('../edit/?id='.$juridica->id_juridica);*/
			
			return;
		}
		else{
			$this->render();
		}
	}

}
